<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>添加商品</h2>
        <ol class="breadcrumb">
            <li class="active">
               <strong> <a href="index.html">主页</a></strong>
            </li>
            <li>
                <a href="{:U('admin/prodect/prodect')}">添加分类</a>
            </li>
        </ol>
    </div>
    <div class="col-lg-2">
    </div>
</div>
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        <form method="post" action="{:U('admin/catalog/do_add')}" class="form-horizontal">
            <div class="form-group"><label class="col-sm-1 control-label">分类名称</label>
                <div class="col-sm-10"><input name="name" type="text" class="form-control"></div>
            </div>
             <div class="hr-line-dashed"></div>
             <div class="form-group"><label class="col-sm-1 control-label">父级类</label>
                <div class="col-sm-10"><select name="parent_id"  class="form-control">
                    <option  value='0'>一级分类</option>
                    <volist name="level1" id="c" > 
                        <option value="{$c.id}">
                            {$c.name}
                        </option>
                        <?php  $level2=M('prodect_catalog')->where('parent_id='.$c['id'])->select();?>
                        <volist name="level2" id="c2" >
                            <option value="{$c2.id}">  
                               └───{$c2.name}
                            </option>
                        </volist>
                    </volist>
                </select>
                   </div>
            </div>
            <div class="hr-line-dashed"></div>
          
            <div class="form-group"><label class="col-sm-1 control-label"></label>
                <div class="col-sm-2"><input  type="submit" class="form-control btn btn-info" ></div>
            </div>
            <div class="hr-line-dashed"></div>
        </form>
    </div>
 </div>
